package edu.scau.cxq.gp.service.impl;

import edu.scau.cxq.gp.entity.dto.SupplierSignDTO;
import edu.scau.cxq.gp.entity.Supplier;
import edu.scau.cxq.gp.mapper.SupplierMapper;
import edu.scau.cxq.gp.service.ISupplierService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 存储供应商信息 服务实现类
 * </p>
 *
 * @author CXQ
 * @since 2022-01-30
 */
@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements ISupplierService {

    @Resource
    private SupplierMapper supplierMapper;

    @Override
    public List<SupplierSignDTO> findSupplierSigns() {
        return supplierMapper.selectAllSignOfSupplier();
    }
}
